package com.weixing.mall.provider.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.weixing.mall.provider.model.domain.ProductStockDetails;
import com.weixing.mall.provider.model.query.ProductStockQuery;
import com.weixing.mall.provider.model.vo.ProductStockListVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author Small
 * @since 2021-07-30
 */
public interface ProductStockDetailsMapper extends BaseMapper<ProductStockDetails> {
    Map<String,Object> totalQuantityAndAmount(@Param("qs") ProductStockQuery productStockQuery);

    IPage<ProductStockListVo> selectOfPage(@Param("pg") Page page, @Param("qs") ProductStockQuery productStockQuery);

    List<ProductStockListVo> selectOfPage(@Param("qs") ProductStockQuery productStockQuery);

    Map<String,Object> testinit(@Param("color") String color,@Param("size") String size,@Param("styleNo") String styleNo);

}
